package com.llap.exp190929.repository;

import com.llap.exp190929.entity.Aqi;
import com.llap.exp190929.entity.District;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface AqiRepository extends JpaRepository<Aqi, Integer> {
    Page<Aqi> findAllByDistrict(District district, Pageable pageable);
}
